/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unplag.filter;
import unplag.core.*;


/**
 *
 * @author Naruil
 */
public class FilePassFilter extends FileFilter{

    private FilePassFilter(TargetFile file){
        super(file);
    }

    @Override
    public String getResult(BaseDir base,Work w) throws Exception{
        return w.getFileContent(this.getTargetFile());
    }

    @Override
    public String getName() {
        return "File-Pass Filter";
    }

    @Override
    public int getParamCount() {
        return 0;
    }

    @Override
    public String getParamName() {
        return null;
    }

    @Override
    public void setParam(int n, String s) {
    }

}
